using UnityEngine;

public class UISetAnimation : UIAnimationElement
{
	public Vector3 position;

	public Transform transformToChange;

	public Transform myTransform
	{
		get
		{
			return transformToChange ?? base.transform;
		}
	}

	public override void Play()
	{
		Stop();
		base.Play();
		myTransform.localPosition = position;
		OnEnd();
	}

	public override void Stop()
	{
		StopAllCoroutines();
		base.Stop();
	}
}
